<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../template/Template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:f="http://java.sun.com/jsf/core">



    <ui:define name="top">
        <ui:include src="/About.xhtml"/>
        <ui:include src="/pessoa/New.xhtml"/>
        <ui:include src="/pessoa/List.xhtml"/>
        <ui:include src="/pessoa/Edit.xhtml"/>
        <h:form>
            <p:menubar>
                <p:submenu labelStyleClass="appleIcon" label="&amp;nbsp; ">
                    <p:menuitem value="About This Mac" url="#" onclick="info.show();"></p:menuitem>
                </p:submenu>
                <p:submenu>
                    <f:facet name="label">
                        <p:menuitem value="#{bundle.Nova_pessoa}" action="#{pessoaController.NovaPessoa}" onclick="pessoa_new.show();" ajax="true" update="pessoa_newF"/>
                    </f:facet>
                </p:submenu>

                <p:submenu label="#{bundle.Listar_pessoas}">
                    <p:menuitem value="#{bundle.Todas}"   action="#{pessoaController.BuscarTodasPessoas}"  onclick="pessoa_list.show();" ajax="true" update="pessoa_listF"></p:menuitem>
                    <p:menuitem value="#{bundle.Por_nome}" action="#{instituicaoController.BuscarPorNome}"          onclick="instituicao_listbyname.show();" ajax="true" update="instituicao_listbyNameF"></p:menuitem>                    
                </p:submenu>


            </p:menubar>
        </h:form>
    </ui:define>

    <ui:define name="body">


    </ui:define>


</ui:composition>
